import request from '@/utils/request'

// 查询实习信息列表
export function listSxxx(query) {
  return request({
    url: '/xxgl/sxxx/list',
    method: 'get',
    params: query
  })
}

// 查询实习信息详细
export function getSxxx(sxxxId) {
  return request({
    url: '/xxgl/sxxx/' + sxxxId,
    method: 'get'
  })
}

// 根据导师ID查询实习信息详细
export function getStudentDataByTeacherId(teacherId) {
  return request({
    url: '/xxgl/sxxx/getStudentDataByTeacherId/' + teacherId,
    method: 'get'
  })
}

// 新增实习信息
export function addSxxx(data) {
  return request({
    url: '/xxgl/sxxx',
    method: 'post',
    data: data
  })
}

// 修改实习信息
export function updateSxxx(data) {
  return request({
    url: '/xxgl/sxxx',
    method: 'put',
    data: data
  })
}

// 删除实习信息
export function delSxxx(sxxxId) {
  return request({
    url: '/xxgl/sxxx/' + sxxxId,
    method: 'delete'
  })
}
